package cn.com.idmy.auth.oauth.model;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serializable;

@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class AccessTokenOut implements Serializable {
    @JSONField(name = "access_token")
    private String accessToken;
    @JSONField(name = "refresh_token")
    private String refreshToken;
    @JSONField(name = "expires_in")
    private long exp;
    @JSONField(name = "refresh_expires_in")
    private long refreshExp;
    @JSONField(name = "client_id")
    private String clientId;
    private String id;
    private String scope;
}
